{include file="public:header" /}
<!--添加文章-->
<form id="info_form" action="{:url('addDo')}" method="post" enctype="multipart/form-data">
<div class="pad_lr_10">
	<div class="col_tab">
		<ul class="J_tabs tab_but cu_li">
			<li class="current">基本信息</li>
			<li>SEO 设置</li>
		</ul>
		<div class="J_panes">
			<div class="content_list pad_10">
				<table width="100%" cellspacing="0" class="table_form">

					<tr>
						<th width="120">所属分类 :</th>
						<td>
                            <select class="J_cate_select mr10" data-pid="0" data-uri="{:url('ActivityCate/ajaxGetchilds')}" data-selected=""></select>
                            <input type="hidden" name="cate_id" id="J_cate_id" value="" />
                        </td>
					</tr>
					<tr>
						<th>所属城市 :</th>
						<td>
							<select class="J_city_select mr10" data-pid="0" data-uri="{:url('City/ajaxGetchilds')}" data-selected=""></select>
							<input type="hidden" name="city" id="J_city_id" value="" />
						</td>
					</tr>
		            <tr>
						<th>活动标题 :</th>
						<td>
							<input type="text" name="title" id="J_title" class="input-text" size="50">
					    </td>
					</tr>
                    <tr>
                        <th>有效时间:</th>
                        <td>
							<input type="text" name="begin_time" id="begin_time" class="date" value="{:date('Y-m-d')}" size="10" onclick="myCalendar();"/>-
							<input type="text" name="end_time" id="end_time" class="date" value="{:date('Y-m-d',strtotime('+1 month'))}" size="10" onclick="myCalendar();"/>
						</td>
                    </tr>
                    <tr>
						<th>缩略图:</th>
						<td><input type="file" name="img" id="img" class="input-text"  style="width:200px;" /><span>图片尺寸：380*260</span></td>
		 			</tr>

					<tr>
						<th>状态 :</th>
		 				<td>
		                	<label><input type="radio" name="status" class="radio_style" value="1" checked="checked"> 启用 </label>&nbsp;&nbsp;
							<label><input type="radio" name="status" class="radio_style" value="0" > 禁用</label>
						</td>
					</tr>
                    <tr>
                        <th>简介 :</th>
                        <td>
                            <textarea style="width:800px;height:80px;resize: none;" name="description"></textarea>
                        </td>
                    </tr>
		            <tr>
						<th>详细内容 :</th>
		                <td><script id="info" name="info" type="text/plain"></script></td>
					</tr>
				</table>
			</div>
			<div class="content_list pad_10 hidden">
				<table width="100%" cellspacing="0" class="table_form">
					<tr>
						<th width="120">SEO 标题 :</th>
		 				<td><input type="text" name="seo_title" id="seo_title" class="input-text" size="60"></td>
					</tr>
					<tr>
						<th>SEO 关键词 :</th>
						<td><input type="text" name="seo_keys" id="seo_keys" class="input-text" size="60"></td>
					</tr>
					<tr>
						<th>SEO 描述 :</th>
						<td><textarea name="seo_desc" id="seo_desc" cols="80" rows="8"></textarea></td>
					</tr>
				</table>
			</div>

        </div>
		<div class="mt10"><input type="submit" value="提交" id="dosubmit" name="" class="btn btn_submit" style="margin:0 0 10px 100px;"><br /><br /><br /></div>
	</div>
</div>
</form>
{include file="public:footer" /}
<script>
	$('.J_cate_select').cate_select();
    $(function() {
        $('ul.J_tabs').tabs('div.J_panes > div');
		setTimeout(function(){$('.J_city_select').cate_select({level:1,field:'J_city_id',id:'J_city_select'})},500);
        $.formValidator.initConfig({formid:"info_form",autotip:true});
        $("#J_title").formValidator({onshow:'请填写标题',onfocus:'请填写标题'}).inputValidator({min:1,onerror:'请填写标题'});
        $("#J_cate_id").formValidator({onshow:'请选择分类',onfocus:'请选择分类'}).regexValidator({regexp:"intege1",datatype:"enum",onerror:"请选择分类"});
    });
</script>
<script src="__PUBLIC__/js/calendar/WdatePicker.js" charset="utf-8"></script>
<script src="__PUBLIC__/js/plugins/jquery.tools.min.js"></script>
<script src="__PUBLIC__/js/ueditor/ueditor.config.js"></script>
<script src="__PUBLIC__/js/ueditor/ueditor.all.min.js"></script>
<script src="__PUBLIC__/js/ueditor/lang/zh-cn/zh-cn.js"></script>
<script type="text/javascript">
	window.UEDITOR_HOME_URL='__PUBLIC__/js/ueditor/';
	window.onload=function(){
		window.UEDITOR_CONFIG.initialFrameWidth=880;
		window.UEDITOR_CONFIG.initialFrameHeight=500;
		UE.getEditor('info');
		//  upmoreimg();
	}
</script>
</body>
</html>